package com.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * dissentingregistration
 * @author 
 */
public class Dissentingregistration implements Serializable {
    private Integer id;

    private Integer serviceid;

    private Integer clientid;

    private String dissentingitem;

    private Date registertime;

    private Integer uid;

    private Integer dissentingserviceid;

    private String descript;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getServiceid() {
        return serviceid;
    }

    public void setServiceid(Integer serviceid) {
        this.serviceid = serviceid;
    }

    public Integer getClientid() {
        return clientid;
    }

    public void setClientid(Integer clientid) {
        this.clientid = clientid;
    }

    public String getDissentingitem() {
        return dissentingitem;
    }

    public void setDissentingitem(String dissentingitem) {
        this.dissentingitem = dissentingitem;
    }

    public Date getRegistertime() {
        return registertime;
    }

    public void setRegistertime(Date registertime) {
        this.registertime = registertime;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getDissentingserviceid() {
        return dissentingserviceid;
    }

    public void setDissentingserviceid(Integer dissentingserviceid) {
        this.dissentingserviceid = dissentingserviceid;
    }

    public String getDescript() {
        return descript;
    }

    public void setDescript(String descript) {
        this.descript = descript;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Dissentingregistration other = (Dissentingregistration) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getServiceid() == null ? other.getServiceid() == null : this.getServiceid().equals(other.getServiceid()))
            && (this.getClientid() == null ? other.getClientid() == null : this.getClientid().equals(other.getClientid()))
            && (this.getDissentingitem() == null ? other.getDissentingitem() == null : this.getDissentingitem().equals(other.getDissentingitem()))
            && (this.getRegistertime() == null ? other.getRegistertime() == null : this.getRegistertime().equals(other.getRegistertime()))
            && (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getDissentingserviceid() == null ? other.getDissentingserviceid() == null : this.getDissentingserviceid().equals(other.getDissentingserviceid()))
            && (this.getDescript() == null ? other.getDescript() == null : this.getDescript().equals(other.getDescript()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getServiceid() == null) ? 0 : getServiceid().hashCode());
        result = prime * result + ((getClientid() == null) ? 0 : getClientid().hashCode());
        result = prime * result + ((getDissentingitem() == null) ? 0 : getDissentingitem().hashCode());
        result = prime * result + ((getRegistertime() == null) ? 0 : getRegistertime().hashCode());
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getDissentingserviceid() == null) ? 0 : getDissentingserviceid().hashCode());
        result = prime * result + ((getDescript() == null) ? 0 : getDescript().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", serviceid=").append(serviceid);
        sb.append(", clientid=").append(clientid);
        sb.append(", dissentingitem=").append(dissentingitem);
        sb.append(", registertime=").append(registertime);
        sb.append(", uid=").append(uid);
        sb.append(", dissentingserviceid=").append(dissentingserviceid);
        sb.append(", descript=").append(descript);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}